<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.raychi.demo.entity.Orders"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
	<table border="1">
		<thead>
			<tr>
				<th>姓名</th>
				<th>总价</th>
			</tr>
		</thead>
		<%
				List<Orders> list = (List<Orders>) request.getAttribute("list");
				%>
		<%
				for(Orders orders : list){%>
		<tr>
			<td><%=orders.getName() %></td>
			<td><%=orders.getTotalPrice() %></td>
		</tr>
		<%}%>
	</table>
	<br />
	<a href="<%=request.getContextPath()%>/orders_save/">添加顾客</a>
</body>
</html>